<template>
    <div class="result_exam">
        <div style="text-align: center;" class="result">
            <div class="result_img">
                <img src="@/assets/lok.svg" />
            </div>
            <div class="res_text">
                本次得分<span>{{ rra.score }}分</span>
            </div>
            <div class="manfen">
                满分{{ rra.total }}分
            </div>
        </div>
        <div class="but">
            <button class="you" style="cursor: pointer;" @click="wancheng">完成</button>
        </div>
    </div>
</template>

<script lang="ts" setup>
import { useRoute, useRouter } from 'vue-router'
let Route = useRoute()
let Router = useRouter()
let rra: any = JSON.parse(Route.query.chuan)
console.log(rra, 'chuan')
const wancheng = () => {
    Router.push('/home/exam/exam/lian')
}
</script>

<style scoped lang="scss">
.manfen {
    margin: 30px 0;
    font-weight: 900;
}

.result {
    width: 300px;
    height: 300px;
    margin: 200px auto;
}

.result_exam {
    // width: 98%;
    height: 1200px;
    // margin-left: 1%;
    // background: #fff;
    overflow: hidden;
}

.but {
    display: flex;
    justify-content: center;
    // background-color: #E02020;
    // height: 300px;
    // width: 500px !important;
    // margin: 0 auto;
}

.you {
    width: 240px;
    border-radius: 45px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    color: #fff;
    background: #E02020;
    font-size: 24px;
    border: none;
}

.res_but {
    width: 240px;
    border-radius: 45px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    color: #E02020;
    background: #eca7a7a1;
    border: none;
    font-size: 24px;
    // margin-top: 207px;
    // margin-left: 30px;
}

.res_cishu {
    color: #A5A7AF;
    font-size: 12px;
    margin: 70px 0;
}



.res_text {
    margin: 50px 0;
    font-size: 16px;
    color: #A5A7AF;

    span {
        font-size: 25px;
        font-weight: 900;
        color: #000;
        margin-left: 20px;
    }
}

.header {
    width: 100%;
    height: 17vh;
}

.result_img {
    img {
        width: 200px;
        height: 148.85px;
    }
}

// @media (min-width: 2160px) {
//     .result_exam {
//         width: 100%;
//         margin: 0 auto;
//         background-color: #fff;
//     }
// }

// @media (max-width: 2159px) {
.result_exam {
    width: 1080px;
    margin: 0 auto;
    background-color: #fff;
}

// }

.tg {
    font-size: 36px;
    color: #00B518;
}

.wtg {
    font-size: 36px;
    color: #E02020;
}
</style>